Accusoft.ImagXpress13.Net
JpegReduce(ImagXpress,Byte[],Byte[],Int32,TransformMode) Method




An instance of the ImagXpress workspace component. This is the main ImagXpress component that typically must be dragged onto a form first.
The buffer holding the input JPEG file.
The buffer holding the output JPEG file.
The quality factor of the compression improvement.

Note: The default value is 22 for strong compression improvement while maintaining very good quality. The range is from 0-32, where 0 represents almost no compression improvement and 32 represents the most compression improvement with some quality loss.

The transform mode for the reduce operation.

Note: The default value is TransformMode.None.

When transformMode is TransformMode.None the output JPEG format will match the input JPEG format.

When transformMode is TransformMode.ToProgressiveJpeg, the output JPEG format will be progressive JPEG. Note: Transforming Sequential to Progressive may result in a small increase in size.

When transformMode is TransformMode.ToSequentialJpeg, the output JPEG format will be sequential JPEG. Note: Transforming Progressive to Sequential may result in a small increase in size.

This function requantizes a JPEG to compress its size without requiring decompression followed by recompression.
Syntax
'Declaration
 
Public Overloads Shared Sub JpegReduce( _
   ByVal imagXpress As ImagXpress, _
   ByVal inputJpegData() As Byte, _
   ByRef outputJpegData As Byte(), _
   Optional ByVal qualityFactor As Integer, _
   Optional ByVal transformMode As TransformMode _
) 
'Usage
 
Dim imagXpress As ImagXpress
Dim inputJpegData() As Byte
Dim outputJpegData As Byte()
Dim qualityFactor As Integer
Dim transformMode As TransformMode
 
ImageReduce.JpegReduce(imagXpress, inputJpegData, outputJpegData, qualityFactor, transformMode)
public static void JpegReduce( 
   ImagXpress imagXpress,
   byte[] inputJpegData,
   out byte[] outputJpegData,
   int qualityFactor,
   TransformMode transformMode
)
public: static void JpegReduce( 
   ImagXpress* imagXpress,
   byte[]* inputJpegData,
   [PARAMFLAG::Out] byte[] outputJpegData,
   int qualityFactor,
   TransformMode transformMode
) 
public:
static void JpegReduce( 
   ImagXpress^ imagXpress,
   array<byte>^ inputJpegData,
   [Out] array<byte> outputJpegData,
   int qualityFactor,
   TransformMode transformMode
) 

Parameters

imagXpress
An instance of the ImagXpress workspace component. This is the main ImagXpress component that typically must be dragged onto a form first.
inputJpegData
The buffer holding the input JPEG file.
outputJpegData
The buffer holding the output JPEG file.
qualityFactor
The quality factor of the compression improvement.

Note: The default value is 22 for strong compression improvement while maintaining very good quality. The range is from 0-32, where 0 represents almost no compression improvement and 32 represents the most compression improvement with some quality loss.

transformMode
The transform mode for the reduce operation.

Note: The default value is TransformMode.None.

When transformMode is TransformMode.None the output JPEG format will match the input JPEG format.

When transformMode is TransformMode.ToProgressiveJpeg, the output JPEG format will be progressive JPEG. Note: Transforming Sequential to Progressive may result in a small increase in size.

When transformMode is TransformMode.ToSequentialJpeg, the output JPEG format will be sequential JPEG. Note: Transforming Progressive to Sequential may result in a small increase in size.

Exceptions
ExceptionDescription
System.ArgumentNullExceptionThrown when imagXpress is null.
System.ArgumentNullExceptionThrown when inputJpegData is null.
System.ArgumentOutOfRangeExceptionThrown when qualityFactor is outside range [0,32].
ImagXpressExceptionThrown when imagXpress is not licensed for this feature.
ImagXpressExceptionThrown when inputJpegData refers to a damaged or incomplete JPEG.
ImagXpressExceptionThrown when inputJpegData does not refer to a 8-bit grayscale or 24-bit color JPEG.
Remarks

Note: Supports reading 8-bit grayscale and 24-bit color JPEGs.

See Also

Reference

ImageReduce Class
ImageReduce Members
Overload List

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback